import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);


import axios from "axios";
import VueAxios from 'vue-axios';
axios.defaults.baseURL = 'http://localhost:8001/'
Vue.use(VueAxios,axios)

//引入moment.js
import moment from 'moment'
Vue.prototype.$moment = moment;


// 引入socket.io
import VueSocketIO from 'vue-socket.io'
import SocketIO from 'socket.io-client'
Vue.use(
  new VueSocketIO({
    debug: false,
    connection: SocketIO('http://127.0.0.1:3000', {
      autoConnect: false // 取消自动连接     
    }),
      extraHeaders: { 'Access-Control-Allow-Origin': '*' }
  })
)

// 引入echarts
// let echarts = require('echarts')
// Vue.prototype.$echarts = echarts



Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
